.class public Lcom/example/m6wmr/ShopimgActivity;
.super Landroid/app/Activity;
.source "ShopimgActivity.java"

# interfaces
.implements Lutil/EventClick;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/ShopimgActivity$MyAdapter;
    }
.end annotation


# static fields
.field public static h:Landroid/os/Handler;


# instance fields
.field private arrayList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation
.end field

.field private imgid:Ljava/lang/String;

.field private j:I

.field listcx:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/Shopimg;",
            ">;"
        }
    .end annotation
.end field

.field m:Lmyapp/MyApp;

.field private mainLayout:Landroid/widget/LinearLayout;

.field private name:Ljava/lang/String;

.field private oldPosition:I

.field sb:Lbean/Shopimg;

.field private shopid:Ljava/lang/String;

.field private timer:Ljava/util/Timer;

.field private timerTask:Ljava/util/TimerTask;

.field public viewList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/widget/ImageView;",
            ">;"
        }
    .end annotation
.end field

.field private viewPager:Landroid/support/v4/view/ViewPager;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 55
    const/4 v0, 0x0

    sput-object v0, Lcom/example/m6wmr/ShopimgActivity;->h:Landroid/os/Handler;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 53
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 54
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/example/m6wmr/ShopimgActivity;->m:Lmyapp/MyApp;

    .line 60
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/ShopimgActivity;->arrayList:Ljava/util/ArrayList;

    .line 61
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/ShopimgActivity;->viewList:Ljava/util/List;

    .line 64
    const/4 v0, 0x0

    iput v0, p0, Lcom/example/m6wmr/ShopimgActivity;->j:I

    .line 53
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/ShopimgActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 65
    iget-object v0, p0, Lcom/example/m6wmr/ShopimgActivity;->name:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/ShopimgActivity;)V
    .locals 0

    .prologue
    .line 156
    invoke-direct {p0}, Lcom/example/m6wmr/ShopimgActivity;->initAdapter()V

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/ShopimgActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 65
    iget-object v0, p0, Lcom/example/m6wmr/ShopimgActivity;->imgid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/ShopimgActivity;)Landroid/support/v4/view/ViewPager;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/example/m6wmr/ShopimgActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/ShopimgActivity;I)V
    .locals 0

    .prologue
    .line 64
    iput p1, p0, Lcom/example/m6wmr/ShopimgActivity;->j:I

    return-void
.end method

.method static synthetic access$5(Lcom/example/m6wmr/ShopimgActivity;I)V
    .locals 0

    .prologue
    .line 63
    iput p1, p0, Lcom/example/m6wmr/ShopimgActivity;->oldPosition:I

    return-void
.end method

.method static synthetic access$6(Lcom/example/m6wmr/ShopimgActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 65
    iget-object v0, p0, Lcom/example/m6wmr/ShopimgActivity;->shopid:Ljava/lang/String;

    return-object v0
.end method

.method private initAdapter()V
    .locals 4

    .prologue
    .line 158
    const v0, 0x7f0c0069

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ShopimgActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/support/v4/view/ViewPager;

    iput-object v0, p0, Lcom/example/m6wmr/ShopimgActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    .line 160
    iget-object v0, p0, Lcom/example/m6wmr/ShopimgActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;

    iget-object v2, p0, Lcom/example/m6wmr/ShopimgActivity;->listcx:Ljava/util/List;

    iget-object v3, p0, Lcom/example/m6wmr/ShopimgActivity;->viewList:Ljava/util/List;

    invoke-direct {v1, p0, v2, v3, p0}, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;-><init>(Lcom/example/m6wmr/ShopimgActivity;Ljava/util/List;Ljava/util/List;Lutil/EventClick;)V

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    .line 161
    iget-object v0, p0, Lcom/example/m6wmr/ShopimgActivity;->viewPager:Landroid/support/v4/view/ViewPager;

    new-instance v1, Lcom/example/m6wmr/ShopimgActivity$2;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/ShopimgActivity$2;-><init>(Lcom/example/m6wmr/ShopimgActivity;)V

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    .line 186
    return-void
.end method


# virtual methods
.method public eventClick(Ljava/lang/String;)V
    .locals 3
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 258
    const-string v0, "TAG"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "-----:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 260
    return-void
.end method

.method public getShopSource()Z
    .locals 1

    .prologue
    .line 263
    new-instance v0, Lcom/example/m6wmr/ShopimgActivity$3;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/ShopimgActivity$3;-><init>(Lcom/example/m6wmr/ShopimgActivity;)V

    .line 326
    invoke-virtual {v0}, Lcom/example/m6wmr/ShopimgActivity$3;->start()V

    .line 327
    const/4 v0, 0x0

    return v0
.end method

.method public initImages(Ljava/util/List;)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lbean/Shopimg;",
            ">;)V"
        }
    .end annotation

    .prologue
    .local p1, "listcx2":Ljava/util/List;, "Ljava/util/List<Lbean/Shopimg;>;"
    const/4 v3, -0x1

    .line 141
    new-instance v2, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v2, v3, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .line 143
    .local v2, "params":Landroid/view/ViewGroup$LayoutParams;
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v3

    if-lt v0, v3, :cond_0

    .line 150
    return-void

    .line 144
    :cond_0
    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 145
    .local v1, "imageView":Landroid/widget/ImageView;
    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 146
    sget-object v3, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 147
    invoke-static {}, Lcom/nostra13/universalimageloader/core/ImageLoader;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/example/m6wmr/ShopimgActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v5, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/Shopimg;

    invoke-virtual {v3}, Lbean/Shopimg;->getImg()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v4, v3, v1}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;)V

    .line 148
    iget-object v3, p0, Lcom/example/m6wmr/ShopimgActivity;->viewList:Ljava/util/List;

    invoke-interface {v3, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 143
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 72
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 73
    const v1, 0x7f0300c2

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/ShopimgActivity;->setContentView(I)V

    .line 74
    invoke-virtual {p0}, Lcom/example/m6wmr/ShopimgActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    check-cast v1, Lmyapp/MyApp;

    iput-object v1, p0, Lcom/example/m6wmr/ShopimgActivity;->m:Lmyapp/MyApp;

    .line 75
    invoke-virtual {p0}, Lcom/example/m6wmr/ShopimgActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 76
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "shopid"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/ShopimgActivity;->shopid:Ljava/lang/String;

    .line 77
    const-string v1, "name"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/ShopimgActivity;->name:Ljava/lang/String;

    .line 78
    const-string v1, "imgid"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/ShopimgActivity;->imgid:Ljava/lang/String;

    .line 79
    invoke-virtual {p0}, Lcom/example/m6wmr/ShopimgActivity;->getShopSource()Z

    .line 81
    new-instance v1, Lcom/example/m6wmr/ShopimgActivity$1;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/ShopimgActivity$1;-><init>(Lcom/example/m6wmr/ShopimgActivity;)V

    sput-object v1, Lcom/example/m6wmr/ShopimgActivity;->h:Landroid/os/Handler;

    .line 113
    return-void
.end method
